<template>
    <div>
        <h1>{{ msg }}</h1>
        <h3>姓名：{{ name }}</h3>
        <h3>年龄：{{ age }}</h3>
        <button @click="printInfo">打印会员信息</button>
        <br/><br/>
        <button @click="a">获取哪里的a方法？</button>
    </div>
</template>

<script>
import { mix1 } from '../mixin.js';
import { mix2 } from '../mixin.js';
export default {
    name: 'Vip',
    data() {
        return {
            msg: '会员信息',
            name: '李四',
            age: 18
        }
    },
    // 混入
    mixins: [mix1, mix2],
    methods: {
        a() {
            console.log('Vip a.......')
        }
    }

}
</script>